<template>
	<view>
		<!-- 头部 -->
		<view style="width: 100vw;height: 20vh;background-color: #7F89EE;display: flex;">
			<view style="width: 20vw;height: 20vh;">
				<image src="/static/logo.png" style="width: 10vw;margin-left: 5vw;margin-top: 6vh; height: 7vh;border-radius: 50%;" mode=""></image>
			</view>
			<view style="width: 78vw;margin-left: 2vw;color: #fff;">
				<view style="width: 78vw;height: 5vh;margin-top: 5vh;display: flex;">
					<view>大橘为重</view>
					<view style="text-align: center;line-height: 3vh;border-radius: 50px; width: 8vw;height: 3vh;opacity: 0.5;font-size: 0.5rem;margin-left: 2vw;border: solid 1px #919AF7;">团长</view>
				</view>
				<view style="font-size: 0.5rem;">加入时间：2019-05-11</view>

			</view>
			
		</view>
			<!--佣金  -->
			<view style="position: relative;top: -5vh;display: flex; width: 80vw;margin-left: 10vw;height: 20vh;background-color: #fff;border-radius: 8px;">
				<view style="width:30vw;margin-left: 10vw; height: 10vh;margin-top: 5vh; border-right: solid 1px #ccc;">
					<view style="font-size: 0.5rem;" @click="tocum()">本月佣金(元)</view>
					<view style="padding-left: 4vw; height: 5vh;line-height: 5vh;font-weight: bold;font-size: 1rem;">0.28</view>
					<view style="font-size: 0.5rem;color: #999">待结算0.29元</view>
				</view>
				<view style="width:30vw;margin-left: 10vw; height: 10vh;margin-top: 5vh; border-right: solid 1px #ccc;">
					<view style="font-size: 0.5rem;" @click="tommm()">累计佣金(元)</view>
					<view style="padding-left: 4vw; height: 5vh;line-height: 5vh;font-weight: bold;font-size: 1rem;">0.28</view>
					<view style="font-size: 0.5rem;color: #999">待结算0.29元</view>
				</view>
			</view>
			<!-- 类型 -->
			<view style="width: 100vw;display: flex;flex-wrap: wrap;">
				<view v-for="(item,index) in List" :key="index" @click="goType(index)" style="margin-top: 2vh; width: 39vw;margin-left: 10vw;height: 13vh;background-color: #fff;border-radius: 8px;display: flex;">
					<view style="width: 15vw;height: 13vh;">
						<image :src="item.img" style="width: 12vw;height: 8vh;margin-top: 2vh;margin-left: 1.5vw;" mode=""></image>
					</view>
					<view style="width: 23vw;margin-left: 2vh; height: 13vh;line-height: 13vh;">{{item.title}}</view>
				</view>
				
			</view>
			
			
	</view>
</template>

<script>
	export default{
		data(){
			return{
				List:[
					{
						img:'/static/images/Lyongjin1.png',
						title:'社区活动'
					},
					{
						img:'/static/images/Lyongjin2.png',
						title:'活动订单'
					},
					{
						img:'/static/images/Lyongjin3.png',
						title:'提货核销'
					},
					{
						img:'/static/images/Lyongjin4.png',
						title:'社区信息'
					}
				]
			}
		},
		methods:{
			goType(index){
				if(index==0){
					uni.navigateTo({
						url:'informationActives/informationActives'
					})
				}else if(index==1){
					uni.navigateTo({
						url:'./activeTips/activeTips'
					})
				}else if(index==2){
					uni.navigateTo({
						url:'./index/off/off'
					})
				}else if(index==3){
					uni.navigateTo({
						url:'./CustomerInformation'
					})
				}
			},
			tocum(){
				uni.navigateTo({
					url:'index/Cumulative/Cumulative'
				})
			},
			tommm(){
				uni.navigateTo({
					url:'index/commission/commission'
				})
			}
		}
	}
	
</script>

<style>
</style>
